package com.uroad.lib.imageloader;

import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;


/**
 * Created by jiadong on 2016/11/2.
 * abstract class/interface defined to load image
 * (Strategy Pattern used here)
 */

public interface BaseImageLoaderStrategy {
    void loadImage(Context context, ImageLoader img);

    void loadImage(Activity activity, ImageLoader img);

    void loadImage(FragmentActivity activity, ImageLoader img);

    void loadImage(android.app.Fragment fragment, ImageLoader img);

    void loadImage(Fragment fragment, ImageLoader img);

    void clearDiskCache(Context context);

    void clearMemoryCache(Context context);

    void clearAllCache(Context context);

    String getCacheSize(Context context);
}
